<?php
/*
*action list
*/
?>
<div class="control-group row">
	
			<div class="navbar navbar-inverse navbar-fixed-top bs-docs-nav">
			  <ul class="breadcrumb">
				<li><a href="#">操作权限管理</a> <span class="divider">></span></li>
				<li class="active">添加权限操作</li>
			  </ul>
			</div>
<?php 
	$attrbutes = array(
		'class' => 'form-horizontal',
		'id' => 'form_add'
	);
	echo form_open('action/add',$attrbutes);
?>


	<div class="control-group">
		<label for='cation_info' class="control-label"><s>*</s>操作描述</label>
		 <div class="controls">
			<input tyle="text" name="action_info"  data-rules="{required:true}"/><span class="auxiliary-text">&nbsp;前端显示的文字</span>
		 </div>
	</div>
	
	<div class="control-group">
		<label for='action_code' class="control-label"><s>*</s>操作标识码</label>
		 <div class="controls">
			 <input tyle="text" name="action_code"  data-rules="{required:true}"/><span class="auxiliary-text">&nbsp;操作的路径(格式: 控制器/方法)</span>
		 </div>
	</div>
	
	<div class="control-group">
		<label for='parent_id' class="control-label">所属操作区间</label>
		<div  class="controls">
		
		<?php echo form_dropdown('parent_id',$actions);?>
		</div>
		<span class="auxiliary-text">&nbsp;操作组别划分，如果要添加操作分组，可以不选择</span>
	</div>
	   
   	<div class="actions-bar  centered">
			<input type="submit" class='button button-primary' checked="checked" value="添加权限操作"/>
			<input type="reset" class='button' checked="checked" value="重置"/>
	</div>
	
<?php
	echo form_close(); 

?>

</div>
<!-- script start-->  
    <script type="text/javascript">
 
var Form = BUI.Form;
new Form.Form({
	srcNode:'#form_add'
}).render();
</script>